<ul>
<?php foreach($this->branch->getChildren() AS $child): ?>
	<?php if($child->isVisible()): ?>
		<li><a <?php echo ($child->id == $this->pageId) ? 'class="active"' : '' ?> href="<?php echo $this->urlToPage($child->id) ?>"><?php echo $this->escape($child->title) ?></a></li>
	<?php endif; ?>
<?php endforeach; ?>
</ul>